package com.wwb.api;

import com.alibaba.fastjson.JSONObject;
import com.wwb.C;
import top.easyj.core.component.api.ApiGroup;
import top.easyj.core.exeption.ExBase;
import top.easyj.sql.NamedSqlDAO;

public abstract class ApiBase extends ApiGroup {
    protected NamedSqlDAO dao = null;
    @Override
    protected void init() {
        dao = new NamedSqlDAO(C.moduleName,C.dsName);
    }

    @Override
    protected JSONObject status() {
        return null;
    }

    @Override
    protected void putDependencies() throws ExBase {
        this.putDataSourceDependency(C.dsName);
    }

    @Override
    public boolean validInEveryApplication(){
        return false;
    }
}
